﻿using Adnc.Infra.EventBus;
using System;

namespace Adnc.Shared.Events
{
    /// <summary>
    /// 云仓出库事件
    /// </summary>
    [Serializable]
    public class OrderStateChangeEvent : BaseEvent<OrderStateChangeEvent.EventData>
    {
        public OrderStateChangeEvent()
        {
        }

        public OrderStateChangeEvent(long id, EventData eventData, string eventSource) : base(id, eventData, eventSource)
        {
        }

        public class EventData
        {
            /// <summary>
            /// 订单ID
            /// </summary>
            public long OrderId { get; set; }

            /// <summary>
            /// 变化时间
            /// </summary>
            public DateTime ChangeTime { get; set; }

            /// <summary>
            /// 变化类型 1：已支付 2：超期
            /// </summary>
            public int ChangeType { get; set; }
        }
    }
}
